package lab03.Test01;

import java.io.*;

public class Test02 {
    public static void main(String[] args) throws IOException {
        //读文件-字符流
        String path = "C:\\unintall.log";
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new FileReader(path));
            String line = null;
            while ((line = reader.readLine()) != null) {
            System.out.println(line);
        }
    }catch (FileNotFoundException e) {

            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }}

